<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<link rel="stylesheet" href="css/jquery.simple-dtpicker.css">
<link rel="stylesheet" href="css/autocomplete.css">
<body>
	
</body>
<script type="text/javascript">
    // 方法一 return
    returnF()
    function returnF(){
        var a=1;
        b=a;
        return b;
    }
    console.log(b);
    //方法二 全局变量
    global()
    var bb;
    function global(){
        var aa=2;
        bb=aa;
    }
    console.log(bb);
    //方法三 函数调用
    fun1()
    function fun1(){
        var aaa=3;
        fun2(aaa);
    }
    function fun2(aaa){
        console.log(aaa);
    }
</script>
</html>